CC = gcc
CFLAGS = -Wall -g

main: main.o hello1.o hello2.o
	$(CC) $(CFLAGS) -o main main.o hello1.o hello2.o

main.o: main.c hello1.h hello2.h
	$(CC) $(CFLAGS) -c main.c

hello1.o: hello1.c hello1.h
	$(CC) $(CFLAGS) -c hello1.c

hello2.o: hello2.c hello2.h
	$(CC) $(CFLAGS) -c hello2.c

clean:
	rm -f main *.o
